﻿using System.Collections.Generic;

namespace Model.Dto
{
    /// <summary>
    ///  分页插件通用实体
    /// </summary>
    /// <typeparam name="T"></typeparam>
    public class PageDto<T>
    {

        /// <summary>
        /// 返回错误编码 默认为0
        /// </summary>
        public string code { get; set; } = "0";
        /// <summary>
        /// 当前页标
        /// </summary>
        public int page { get; set; } = 1;
        /// <summary>
        /// 总页数
        /// </summary>
        public int count { get; set; } = 6;
        /// <summary>
        /// 数据总数
        /// </summary>
        public int dataCount { get; set; } = 0;
        /// <summary>
        /// 每页大小
        /// </summary>
        public int PageSize { set; get; }
        /// <summary>
        /// 返回数据
        /// </summary>
        public List<T> data { get; set; }
    }
}
